package com.zyong.design.pattern.responsibility.case4;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-04-13 18:38
 */
public class Client {
    public static void main(String[] args) {
        PmHandler pmHandler = new PmHandler();
        GmHandler gmHandler = new GmHandler();

        pmHandler.setNextHandler(gmHandler);

        LeaveRequest request = new LeaveRequest("张三", 5, 3);
        pmHandler.process(request);
    }
}
